package com.xywl.escort.view.order.purchase;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseReq;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.BuyAgainResp;
import com.xywl.escort.bean.DefaultResp;
import com.xywl.escort.bean.SubmitOrderReq;
import com.xywl.escort.bean.SubmitOrderResp;

public interface BuyAgainContract {

    interface Presenter extends BasePresenter {
        void takeView(BuyAgainContract.View view);

        void loadOrder(String id);

        void loadAddrDefault();

        void submitOrder(SubmitOrderReq req);
    }

    interface View extends BaseView<Presenter> {
        void loadOrderSuccess(BuyAgainResp.DataBean dataBean);

        void loadOrderFailure();

        void loadAddrSuccess(DefaultResp resp);

        void loadAddrFailure();

        void submitOrderSuccess(SubmitOrderResp.DataBean dataBean);

        void submitOrderFailure(String msg);
    }
}
